package func

/**
 *
 * @author tzp
 * @since 2021/11/9
 */
object StrangeExtends {
  def main(args: Array[String]): Unit = {
    val x = new Fun
    println(x.getClass())
    println(x("aa"))
  }
}

class Fun extends (String => String) {
  override def apply(v1: String): String = s"??? $v1"
}
